package com.runshu.newsmartark.mvp.model;

import com.runshu.newsmartark.common.ConstantUrl;
import com.runshu.newsmartark.entity.ConfirmStockEntity;
import com.runshu.newsmartark.entity.FaceManagerBean;
import com.runshu.newsmartark.mvp.contract.ConfirmStockContract;
import com.runshu.newsmartark.network.netbean.HttpRequestParamsBuilder;
import com.runshu.newsmartark.network.netbean.ResponseBean;
import com.runshu.newsmartark.network.netinterface.BaseCallBack;

import java.util.List;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/10/28
 * @decs：
 */

public class ConfirmStockModel extends BaseModel implements ConfirmStockContract.Model {

    @Override
    public void getConfirmStock(String macAddress, String userCode, List<String> refIds, String type,BaseCallBack baseCallBack) {
        HttpRequestParamsBuilder builder = new HttpRequestParamsBuilder();
        builder.putParams("macAddress",macAddress);
        builder.putParams("userCode",userCode);
        builder.putParams("refIds",refIds);
        builder.putParams("refIds",refIds);
        builder.putParams("type",type);
        super.initDataFromServer(ConstantUrl.CONFIRM_TakeStock,builder.build(), ConfirmStockEntity.class, ResponseBean.RES_DATATYPE_BEAN,baseCallBack);

    }
}